import {defineConfig} from 'vite'
import {
  resolve
} from "path";
import reactRefresh from '@vitejs/plugin-react-refresh'

// https://vitejs.dev/config/
export default defineConfig({
  base: './',
  plugins: [
    reactRefresh()
  ],
  resolve: {
    alias: [
      { find: '@', replacement: resolve(__dirname, 'src') },
    ]
  },
  css:{
    preprocessorOptions: {
      scss: {
        additionalData: `@import "src/global/scss/constants";`
      }
    }
  }
})
